public class state {
    private String name;
    private int seats;
    private int pop;
    private double calpop;
    
    public state(String name, int pop) {
        this.name = name;
        this.pop = pop;         
        seats = 1;
        calpop = pop/(Math.sqrt(seats*(seats+1)));
    }
    
    public void update() {
        calpop = pop/(Math.sqrt(seats*(seats+1)));
    }
    
    public void giveSeat() {
        seats++;
    }
    
    public String getName() {
        return name;
    }
    
    public int getPop() {
        return pop;
    }
    public double getCalpop() {
        return calpop;
    }
    public int getSeats() {
        return seats;
    }
}